<ion-view>
    <ion-header-bar align-title="center" class="bar-positive">
        <a class="button icon-left ion-chevron-left button-clear" ng-click="goBack()">返回</a>
        <div class="h1 title">我的简历</div>
    </ion-header-bar>
    <ion-content class="padding">
        <div class="row">
            <div class="col col-center"><img src="/employ/assets/img/avatar.gif" width="100%"></div>
            <div class="col col-center">欢迎你，{{publicData.userInfo.name}}</div>
            <div class="col col-center">
                <button class="button button-assertive" ng-click="addPopup()">
                    新增简历
                </button>
            </div>
        </div>
        <div class="card" ng-repeat="resume in publicData.userResumes">
            <div class="list">
                <div class="item item-button-right">
                    {{resume.resume_name}}
                    <div class="buttons">
                        <button class="button button-positive" ng-click="edit(resume._id)">
                            <i class="icon icon ion-edit"></i>
                        </button>
                        <button class="button button-assertive" ng-click="deletePopup(resume._id)">
                            <i class="icon icon ion-minus"></i>
                        </button>
                    </div>
                </div>
                <div class="item">
                    <span ng-repeat="r in resume.work_info">{{r.company_name}}<br></span>
                    <span ng-repeat="l in resume.language_info">{{l.language + l.level}}<br></span>
                </div>
            </div>
        </div>

    </ion-content>
    <ion-footer-bar class="bar-clear">
        <div class="row row-center">
            <div class="button-bar">
                <a class="button button-positive button-clear" ng-click="findJob()">找工作</a>
            </div>
        </div>
    </ion-footer-bar>
</ion-view>
